<!DOCTYPE html>
<html>
  <head>
    <script>
      var i = 6;
      if (i % 2 == 0) {
        alert(i + "is an even number ");
      } else {
        alert(i + " is an odd number");
      }
    </script>
  </head>
  <body>
    <div></div>
  </body>
</html>
